import {
    constantNameMap
} from '../constants/index';
export default function (value, key) {
    if (!value && value !== 0) {
        return '';
    }
    // 由于可能存在枚举传值为数字
    value = value + '';
    let constant = constantNameMap[key];
    let valKeys = value.split(',');
    let values = [];
    valKeys.forEach(index => {
        values.push(constant[index]);
    });
    return values.join(',');
}
